var arrRoom =new Object();
arrRoom['keke'] = createObj(1,3,100,1);

//id : id cua phong
//roomtype: loai phong
//timestamp: thoi gian da thue tinh bang giay
//status : trang thai phong dang thue hay khong
function createObj(id,roomtype,timestamp,status);
{
    var obj = new Object();        
    obj.id = id;
    obj.roomtype = roomtype;
    obj.timestamp = timestamp;
    obj.status = status;
    return(obj);
}
function choi(){
    var obj = new Object();
    obj = arrRoom['keke'];
    alert(obj.timestamp);
}